let smallMicroDetail = {
    init() {
        this.ec01_line();
        this.ec02_scatter();
        this.ec03_bar();
        this.ec04_bar();

    },
    /*融资额-折线图*/
    ec01_line() {
        let ec001_line = echarts.init($("#ec01_line")[0]);
        ec001_line.clear();
        ec001_line.setOption(com_line);
        ec001_line.setOption({
            grid: {
                left: '0%',
                bottom: '0%'
            },
            xAxis: {
                data: ['500万', '1000万', '5000万', '1亿', '10亿￥', '10亿$'],
            },
            yAxis: {
                show: true,
            },
            series: [{
                data: [120, 332, 501, 634, 290, 330],
                itemStyle: { normal: { label: { show: true ,position: 'top',color:'#fff'} } },

            }, {
                data: [320, 932, 901, 934, 1290, 1330],
                itemStyle: { normal: { label: { show: true ,position: 'top',color:'#fff'} } },

            }, {
                data: [420, 632, 801, 434, 590, 630],
                itemStyle: { normal: { label: { show: true ,position: 'top',color:'#fff'} } },
            }
            ].map(function (item) {
                return $.extend(item, com_lineSeries)
            }),
        });
    },
    /*  市场估值-散点图*/
    ec02_scatter() {
        let ec002_scatter = echarts.init($("#ec02_scatter")[0]);
        ec002_scatter.clear();
        ec002_scatter.setOption(com_line);
        ec002_scatter.setOption({
            tooltip: {},
            grid: {
                left: '0%',
                bottom: '0%'
            },
            xAxis: [{}].map(function (item) {
                return $.extend(item, {
                    // offset: -76,
                    inverse: true,
                    data: ['500万', '5000万', '5亿', '50亿', '500亿']
                })
            }),
            yAxis: [{

                axisType: 'category',
                show: true
            }, {
                position: 'left',
                axisLine: { show: true },
                axisLabel: { show: false },
            }, {
                gridIndex: 1,
                show: false,
            }].map(function (item) {
                return $.extend(item, {
                    data: [-1, 0, 1, 2, 3, 4, 5],
                    boundaryGap: false,
                })
            }),
            series: [
                {
                    name: '目标',
                    type: 'scatter',
                    itemStyle: { normal: { label: { show: true ,position: 'top',color:'#fff'} } },
                    data: [
                        [4.36, 2.84],
                        [2.47, 3.82],
                        [5.0, 3.68]
                    ]
                }, {
                    name: '实际',
                    type: 'scatter',
                    itemStyle: { normal: { label: { show: true ,position: 'top',color:'#fff'} } },
                    data: [
                        [1.69, 4.84],
                        [3.13, 2.82],
                        [2.5, 1.68]
                    ]
                }, {
                    name: '对手',
                    type: 'scatter',
                    itemStyle: { normal: { label: { show: true,position: 'top',color:'#fff' } } },
                    data: [
                        [3.66, 3.84],
                        [2.14, 1.82],
                        [4.89, 2.68]
                    ]
                }
            ]
        });
    },
    /* 融资速度-柱状图*/
    ec03_bar() {
        let ec003_bar = echarts.init($("#ec03_bar")[0]);
        ec003_bar.clear();
        ec003_bar.setOption(com_line);
        ec003_bar.setOption({
            grid: {
                left: '0%',
                bottom: '0%'
            },
            yAxis: {
                axisLine: { show: true },
                axisLabel: { show: false },
                type: 'category',
                data: ['TS', 'A', 'B', 'C', 'DJ']
            },
            xAxis: {
                type: 'value',
                splitLine: { show: false },
                axisTick: { //小刻度线
                    show: false
                },
                data: ['0', '500', '1000', '1500', '2000', '2500', '3000']
            },
            series: [
                {
                    name: '空',
                    type: 'bar',
                    stack: '目标',
                    itemStyle: { normal: { label: { show: true ,position: 'right',color:'#fff'} } },
                    data: [0, 500, 600, 700, 800],
                    color: '#3d3d55'
                },
                {
                    name: '目标',
                    type: 'bar',
                    stack: '目标',
                    itemStyle: { normal: { label: { show: true ,position: 'right',color:'#fff'} } },
                    data: [0, 1700, 1400, 1200, 300]
                },
                {
                    name: '空',
                    type: 'bar',
                    stack: '实际',
                    itemStyle: { normal: { label: { show: true ,position: 'right',color:'#fff'} } },
                    data: [0, 400, 500, 600, 700],
                    color: '#3d3d55'
                },
                {
                    name: '实际',
                    type: 'bar',
                    stack: '实际',
                    label: {
                        normal: {
                            show: true,
                            position: 'right',
                            color:'#fff'
                        }
                    },
                    data: [200, 1900, 1600, 1400, 500]
                },
                {
                    name: '对手',
                    type: 'bar',
                    stack: '对手',
                    label: {
                        normal: {
                            show: true,
                            position: 'right',
                            color:'#fff'
                        }
                    },
                    data: [1900, 1200, 300, 200, 900]
                },
            ]
        });
    },
    /* 收入-堆积柱状图*/
    ec04_bar() {
        let ec004_bar = echarts.init($("#ec04_bar")[0]);
        ec004_bar.clear();
        ec004_bar.setOption(opt_bar_vertical);
        ec004_bar.setOption({
            grid: {
                left: '0%',
                bottom: '0%'
            },
            xAxis: {
                type: 'category',
                splitLine: {
                    show: false,

                },
                data: ['1', '2', '3']
            },
            yAxis: {
                axisLine: { show: true },
                axisLabel: { show: false },
                type: 'value',
                axisTick: { //小刻度线
                    show: true,

                },
            },
            series: [
                {
                    name: '1',
                    type: 'bar',
                    stack: 'all',
                    itemStyle: { normal: { label: { show: true ,position: 'right',color:'#fff'} } },
                    data: [600, null, null],
                    color:'#1ab20f'
                },
                {
                    name: '2',
                    type: 'bar',
                    stack: 'all',
                    label: {
                        normal: {
                            show: true,
                            position: 'right',
                            color:'#fff'
                        }
                    },
                    data: [null, 1200, null],
                    color:'#797efe'
                },
                {
                    name: '3',
                    type: 'bar',
                    stack: 'all',
                    label: {
                        normal: {
                            show: true,
                            position: 'right',
                            color:'#fff'
                        }
                    },
                    data: [null, null, 1300],
                    color:'#fbdb14'
                }
            ]
        });
    },


}
smallMicroDetail.init();